<?php

class Zend_View_Helper_UiButton extends Zend_View_Helper_Abstract {

    protected $options = array(
        'text' => '-',
        'class' => '',
        'link' => '',
    );

    public function uiButton($options = array()) {

        $options = array_merge($this->options, $options);

        return '<div class="ui ui-button' . (!empty($options['class']) ? ' ' . $options['class'] : '') . '">
                                    <div class="button-left">
                                        <div class="button-right">
                                            <div class="button-center">
                                               ' . ($options['link'] !=''? '<a  class="button-label" href="' . $options['link'] . '">' . $options['text'] . '</a>' : '<span class="button-label">' . $options['text'] . '</span>') . '
                                            </div>
                                        </div>
                                    </div>
                                </div>';
    }

}